package springmvc;


import com.sun.istack.internal.logging.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;


@Controller
@RequestMapping(value = "/user")
public class UserController {
    private Logger log = Logger.getLogger(UserController.class);
//    @RequestMapping(value = "/view",method = RequestMethod.GET)
    @GetMapping(value = "/view")
    public String view(){
        log.info("查询用户详情");
        return null;
    }
//    @RequestMapping(value = "/save",method = RequestMethod.POST)
    @PostMapping("/save")
    public String save(){
        log.info("保存用户信息");
        return null;
    }
}
